package com.wenan.ui.controls.command
{
	import com.wenan.ui.layout.NavigatorPage;
	
	import mx.containers.HBox;
	
	public class LeftCommandBar extends HBox
	{
		private var _page:NavigatorPage;
		private var _navigatorControl:NavigatorControl;
		
		public function LeftCommandBar()
		{
			super();
			
			setStyle("verticalAlign", "middle");
			
			initilizeComponents();	
		}

		public function get page():NavigatorPage
		{
			return _page;
		}

		public function set page(value:NavigatorPage):void
		{
			_page = value;
		}

		public function get navigatorControl():NavigatorControl
		{
			return _navigatorControl;
		}
		
		/**
		 * 初始化控件。
		 */
		private function initilizeComponents():void
		{
			_navigatorControl = new NavigatorControl();
			addElement(_navigatorControl);
		}
	}
}